// import index from '../views/index'
const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('../views/index'),
    children: [
      {
        path: 'my',
        component: () => import('../components/my')
      },
      {
        path: 'up',
        component: () => import('../components/up')
      },
      {
        path: 'files',
        component: () => import('../components/files')
      },
      {
        path: '/',
        redirect: 'files'
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/register')
  },
]
export default routes